﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LayersDotNet.DataAccess.Interface;
using LayersDotNet.Entity;

namespace LayersDotNet.DataAccess.EntityFx
{
    public class CustomerDA : BaseDA<Customer>, ICustomerDA
    {
        public void RemoveBank()
        {
            foreach (Customer customer in this.Where(c => c.Bank != null))
                customer.Bank = null;

            this.EntityContext.SaveChanges();
        }
    }
}
